﻿#ifndef PAGE3_H
#define PAGE3_H

#include <QWidget>
#include <QPushButton>
#include "databaseManager.h"
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QTableWidget>
#include <QApplication>
#include <QHeaderView>
#include <QVBoxLayout>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QtCharts/QPieSeries>
#include <QtCharts/QPieSlice>
#include <QtCharts/QChart>
#include <QMap>
#include <QList>
#include <QVariant>
#include <QDebug>
#include <QChartView>

using namespace QtCharts;

class Page3 : public QWidget
{
    Q_OBJECT

public:
    explicit Page3(QWidget* parent = nullptr);
    ~Page3();

signals:
    void nextPageRequested();
    void orderRequested();
    void productionRequested();
    void storeRequested();
    void financeRequested();
    void pageRequested8();
    void pageRequested9();
    void pageRequested7();
    void addEmployeeRequested();
    void pageRequested10();
void pageRequested13();
    void pageRequested1();


public slots:

    void financeHide();
    void signuphide();
    void openAddInventoryDialog();
    void initializeInventoryChart();
      void onFrontButtonClicked();

private:
    QPushButton* orderButton;          // 订单按钮
    QPushButton* warehouseButton;      // 仓库按钮
    QPushButton* productionButton;     // 生产按钮
    QPushButton* financeButton;        // 财务按钮
    QPushButton* inventoryButton;
    QPushButton* purchaseButton;
    QPushButton* queryButton;
    QPushButton* addEmployeeButton;
    QPushButton* helpButton;
    QSqlTableModel* getInventoryModel();
    QVBoxLayout* mainLayout;
    QChartView* chartView;
    QPushButton*connectButton;//连接按钮
        QPushButton*frontButton;
};

#endif // PAGE3_H
